import request from '@/utils/request'

// 查询病历模版列表
export function listCase_model(query) {
  return request({
    url: '/dms/case_model/list',
    method: 'get',
    params: query
  })
}

// 查询病历模版详细
export function getCase_model(id) {
  return request({
    url: '/dms/case_model/' + id,
    method: 'get'
  })
}

// 新增病历模版
export function addCase_model(data) {
  return request({
    url: '/dms/case_model',
    method: 'post',
    data: data
  })
}

// 修改病历模版
export function updateCase_model(data) {
  return request({
    url: '/dms/case_model',
    method: 'put',
    data: data
  })
}

// 删除病历模版
export function delCase_model(id) {
  return request({
    url: '/dms/case_model/' + id,
    method: 'delete'
  })
}

// 导出病历模版
export function exportCase_model(query) {
  return request({
    url: '/dms/case_model/export',
    method: 'get',
    params: query
  })
}